var status = -1;
var selectionLog = [];

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.getPlayer().scheduleWarpTask(90, 350043000, 0, true);
            cm.getPlayer().scheduleOpenNpcTask(25, 1, "黑色天堂_Act4_逃离甲板");
            cm.getPlayer().scheduleOpenNpcTask(30, 10, "黑色天堂_Act4_逃离甲板");
            cm.getPlayer().scheduleOpenNpcTask(35, 10, "黑色天堂_Act4_逃离甲板");
            cm.getPlayer().scheduleOpenNpcTask(40, 11, "黑色天堂_Act4_逃离甲板");
            cm.getPlayer().scheduleOpenNpcTask(45, 2, "黑色天堂_Act4_逃离甲板");
            cm.getPlayer().scheduleOpenNpcTask(50, 3, "黑色天堂_Act4_逃离甲板");
            cm.getPlayer().scheduleOpenNpcTask(55, 20, "黑色天堂_Act4_逃离甲板");
            cm.getPlayer().scheduleOpenNpcTask(50, 20, "黑色天堂_Act4_逃离甲板");
            cm.getPlayer().scheduleOpenNpcTask(65, 20, "黑色天堂_Act4_逃离甲板");
            cm.getPlayer().scheduleOpenNpcTask(70, 20, "黑色天堂_Act4_逃离甲板");
            cm.getPlayer().scheduleOpenNpcTask(75, 4, "黑色天堂_Act4_逃离甲板");
            cm.getPlayer().scheduleOpenNpcTask(80, 21, "黑色天堂_Act4_逃离甲板");
            cm.getPlayer().scheduleOpenNpcTask(85, 22, "黑色天堂_Act4_逃离甲板");
            cm.dispose()
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};